﻿using System.Collections.Generic;
using Pyramid.Extentions;

namespace Pyramid.Models
{
	public class StaffSalaryViewModel
	{
		public StaffSalaryMaster Master { get; set; }
		public IEnumerable<StaffSalaryDetail> Details { get; set; }
		public IEnumerable<StaffSalarySummaryViewModel> Summaries { get; set; }

		public IList<SalaryPart> SalaryParts { get; set; }
	}

	public class StaffSalarySummaryViewModel
	{
		public int StaffId { get; set; }
		public string StaffCode { get; set; }
		public string StaffName { get; set; }
		public int Gender { get; set; }
		public string DepartmentName { get; set; }
		public string PositionName { get; set; }
		public decimal TotalSalary { get; set; }

		public string GenderString
		{
			get { return ((Genders) Gender).ToDescription(); }
		}
	}
}